from appium.webdriver.common.appiumby import AppiumBy
from AppTest.page.base_page import BasePage


class WorkbenchPage(BasePage):

    __BUTTON_APPROVAL = (AppiumBy.XPATH, "//*[@text='审批']")
    __BUTTON_PERSONNEL_ASSISTANT = (AppiumBy.XPATH, "//*[@text='人事助手']")

    def ToApproval(self):
        self.do_click(self.__BUTTON_APPROVAL)

    def ToPersonnelAssistant(self):
        self.do_click(self.__BUTTON_PERSONNEL_ASSISTANT)


